<?php 

header("content-type:text/html;charset=utf-8"); //保证文字支持中文  utf  gbk   gb2312  字符编码格式

学生案列
$gehang1 = array('stuno'=>'14110100326','name'=>'lcy','sex'=>'男','birth'=>'10.14','class'=>'计算机14003');
$gehang['major']='计算机科学与技术';

	

$gehang2 = array('stuno'=>'14110100122','name'=>'lcy','sex'=>'男','birth'=>'10.14','class'=>'计算机14013','major'=>'计算机科学与技术');


$gehang3 = array('stuno'=>'14110100s3326','name'=>'lcy','sex'=>'男','birth'=>'11.14','class'=>'计算机14003');
$gehang['major']='计算机科学与技术';

$stus=array($gehang1,$gehang2,$gehang3);
var_dump($gehang1);
var_dump($gehang2);
var_dump($gehang3);


/*
echo '<h2>2、用户案例</h2>';



$user1=array('username'=>'14110100326',
	'password'=>'864848',
	'realname'=>'gehang',
	'sex'=>'男',
	'hobby'=>'游泳，唱歌，跳舞',
	'thumb'=>'thumb/gehang.jpg',
	'email'=>'gehang14@edu.cn'
      );
$user2=array('username'=>'14110100356',
	'password'=>'8648548',
	'realname'=>'gehang',
	'sex'=>'男',
	'hobby'=>'游泳，唱歌，跳舞',
	'thumb'=>'thumb/gehang.jpg',
	'email'=>'gehang14@edu.cn'
      );
$users=array();
$users[]=$user1;
$users[]=$user2;
var_dump($users);//调试程序  var dump

foreach ($users as $one) {
	// foreach ($one as $key => $value) {
	//	echo $key.':'.$value.'<br>';
	//}

	echo '用户名: '.$one['username'].'<br>';
	echo '姓名: '.$one['realname'].'<br>';
}
//for($i=0;$i<count($users);$i++){
//	$one=$users[$i];
//}

/*


echo '<h2>3、视频案例</h2>';

$categoty_recreation = array('id'=>1,
	'categoty_recreation'=>'综艺'
	);
$categoty_movie = array('id'=>2,
	'categoty_name'=>'电影'
	);
$categoty_series = array('id'=>3,
	'categoty_name'=>'电视剧'
	);
$categoty = array($categoty_recreation,$categoty_movie,$categoty_series);


$movie_fish=array(
	'id'=>1,
	'name'=>'美人鱼',
	'intro'=>'好看',
	'director'=>'周星驰',
	'thumb'=>'fish.jpg',
	'categoty_id'=>2,
	'categoty_name'=>'电影'
	);



$movie_fish=array(
	'id'=>1,
	'name'=>'美人鱼v',
	'intro'=>'好看',
	'director'=>'周星驰',
	'thumb'=>'fish.jpg',
	'categoty_id'=>3,
	'categoty_name'=>'电视剧'


	);
$movie_fish=array(
	'id'=>1,
	'name'=>'美人鱼v',
	'intro'=>'好看',
	'director'=>'周星驰',
	'thumb'=>'fish.jpg',
	'categoty_id'=>1,
	'categoty_name'=>'综艺'


	);

$movie_fish=array(
	'id'=>1,
	'name'=>'美人鱼v',
	'intro'=>'好看',
	'director'=>'周星驰',
	'thumb'=>'fish.jpg',
	'categoty_id'=>1,
	'categoty_name'=>'综艺'


	);

$movie_fish=array(
	'id'=>1,
	'name'=>'美人鱼v',
	'intro'=>'好看',
	'director'=>'周星驰',
	'thumb'=>'fish.jpg',
	'categoty_id'=>2,
	'categoty_name'=>'电影'


	);

$movie_fish=array(
	'id'=>1,
	'name'=>'美人鱼v',
	'intro'=>'好看',
	'director'=>'周星驰',
	'thumb'=>'fish.jpg',
	'categoty_id'=>1,
	'categoty_name'=>'综艺'


	);
//'catid'=>1,
  //'cat_name'=>'电影'，
  //'videos'=>array($videos1,$videos2
  //	);

   //$videos[] = $movies;

*/
?>	
